package cn.sc.summer.token.base;

import cn.sc.summer.constant.service.Support;
import org.springframework.security.core.GrantedAuthority;

import java.util.Collection;

/**
 * 类名：小程序OpenId登录token
 *
 * @author a-xin
 * @date 2023/11/28 14:56
 */
public class DefaultLoginToken extends BaseLoginToken {

    private static final long serialVersionUID = -6231962326068951724L;

    public DefaultLoginToken(Object principal, Object credentials) {
        super(principal, credentials);
    }

    public DefaultLoginToken(Object principal, Object credentials, Collection<? extends GrantedAuthority> authorities) {
        super(principal, credentials, authorities);
    }

    /**
     * Determine the types of data sources supported by this class
     *
     * @return Supported types
     */
    @Override
    public String supports() {
        return Support.DEFAULT;
    }

}
